/**
 * My brain is better than everybody's
 */

package com.duan.ssm.service.impl;

import com.duan.ssm.dao.DeptDao;
import com.duan.ssm.entity.Department;
import com.duan.ssm.service.intf.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    private  DeptDao deptDao;

    @Override
    public int save(Department department) {
        return deptDao.save(department);
    }

    @Override
    public int delete(Integer id) {
        return deptDao.delete(id);
    }

    @Override
    public List<Department> select() {
        return deptDao.select();
    }
}
